If the RC servo motor is configured and RCServoTargetPosition is set, the controller will continuously try to reach targeted position.
RCServoMinPosition and RCServoMaxPosition.RCServoTargetPosition, RCServoVelocityLimit, and RCServoAcceleration are configured by scaling the internal timing (set with RCServoMinPulseWidth and RCServoMaxPulseWidth) to a user specified range with RCServoMinPosition and RCServoMaxPosition.RCServoMinPulseWidth and a RCServoMaxPulseWidth corresponding to range of pulse widths that produce the servo arm's full range of movement.RCServoMinPulseWidth and RCServoMaxPulseWidth stored by the library to match the desired range of movement you expect from your servo.RCServoTargetPosition to RCServoMaxPosition, the controller will send pulses of RCServoMaxPulseWidth to the servo.RCServoMinPosition will send pulses of RCServoMinPulseWidth to the servoRCServoMaxPosition can be set smaller than RCServoMinPosition to invert movement of the servo, if it helps your application.RCServoTargetPosition will transate the position between RCServoMinPosition and RCServoMaxPosition to a corresponding Pulse Width between RCServoMinPulseWidth and RCServoMaxPulseWidth, in turn sending the servo arm to the desired position.RCServoVelocityLimit and RCServoAcceleration for your servo will limit the rate of change of the servo's position in terms of one UserUnit per second (or /s2). Here, a UserUnit is whatever distance is maked by the change of the RCServoTargetPosition by 1.0RCServoMaxPulseWidth and RCServoMinPulseWidth. You can use the default values for these (or the ones on your servo's datasheet) as a starting point.RCServoMaxPosition and RCServoMinPosition to check the results. Repeat steps 1 and 2 as nessesarry.RCServoMaxPosition and RCServoMinPosition to match whatever numbers you find best suited to your application.
|
|
Device In Device # Identification |
|
|
error in (no error) error in can accept error information wired from VIs previously called. |
|
|
status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |
|
|
code code is the error or warning code. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |
|
|
source source describes the origin of the error or warning. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |
|
|
Target Position The position value 1000_0 (ver: 200, 201) RC Servo Motor Controller: Must be set
1000_0 (ver: 300, 312) RC Servo Motor Controller: Must be set
1000_0 (ver: 313) RC Servo Motor Controller: Must be set
1001_0 (ver: 200, 201) RC Servo Motor Controller: Must be set
1001_0 (ver: 300, 302, 312) RC Servo Motor Controller: Must be set
1001_0 (ver: 313) RC Servo Motor Controller: Must be set
1061_0 (ver: 100) RC Servo Motor Controller: Must be set
1061_0 (ver: 200) RC Servo Motor Controller: Must be set
1061_1 (ver: 300, 301, 302, 303, 304) RC Servo Motor Controller: Must be set
1066_0 (ver: 100) RC Servo Motor Controller: Must be set
1066_1 (ver: 100, 101) RC Servo Motor Controller: Must be set
RCC0004_0 (ver: 400) RC Servo Motor Controller: Must be set
RCC1000_0 (ver: 106) RC Servo Motor Controller: Must be set
RCC1000_0 (ver: 110, 111, 120, 121) RC Servo Motor Controller: Must be set
RCC1000_1 (ver: 200) RC Servo Motor Controller: Default: 90 |
|
|
Device Out Same as Device In |
|
|
error out error out passes error or warning information out of a VI to be used by other VIs. |
|
|
status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |
|
|
code code is the error or warning code. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |
|
|
source source describes the origin of the error or warning. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error. |